import Vue from 'vue'
import Vuex from 'vuex'

import * as actions from './actions';
import * as mutations from './mutations';
import * as getters from './getters';


// 1.安装插件
Vue.use(Vuex)

// 2.创建对象
const state = {
  isLogin:false,
  userImage:null,
  currentUser:'',
  email:'',
}
const store = new Vuex.Store({
  state,
  mutations,
  actions,
  getters,

})

// 3.导出store独享
export default store

